<template>
    <div>
        <van-grid :column-num="5" >
  <van-grid-item v-for="item in GirdArr" :key='item.id' :icon="item.icon_url" :text="item.name" @click="clickF(item)" />
</van-grid>
    </div>
</template>

<script>
export default {
    name: "Gird",
    props: ['GirdArr'],
    data() {
        return {

        };
    },
    created() {
    //console.log(this);
    },
    methods: {
        clickF(item){
            console.log('点击了',item.id);
            this.$router.push({ path:"/fen",query:{id:item.id} });
        }
    }
};
</script>

<style scope>

</style>